<?php
class User_Model_Users extends Zend_Db_Table
{
	protected $_name 	= 'users';
	protected $_primary = 'user_id';
	public function addUser($arrParams, $options = null)
	{
		if($options['action'] == 'user-new'){
			$row = $this->fetchNew();
			$endcode = new Myh_Encode();
			$row->group_id			= 0;
			$row->full_name 		= $arrParams['full_name'];
			$row->email				= $arrParams['email'];
			$row->password			= $endcode->password($arrParams['password']);
			$row->register_date 	= date('Y-m-d H:i:s');
			$row->register_ip 		= $_SERVER['REMOTE_ADDR'];
			$row->status			= 1;
			$row->save();
		}
	}
}